package edu.sctu.wulixia.month4and5.day20150510.testthree;

/**
 * Created by user05 on 2015/5/10.
 */
public class TestTwo {
    public static void printArrey(TestOne[] testn) {
        for(int i = 0; i < testn.length; i ++){
            if(testn[i].getAge() >= 18){
                System.out.println("您已经成年");
                System.out.println("姓名：" + testn[i].getName() + "\n" + "性别：" + testn[i].getSex());
            }else{
                System.out.println("未成年，" + testn[i].getName() + "不能进入网吧");
            }
        }
    }
}
